# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-pysocks
_pkgname=PySocks
pkgver=1.7.1
pkgrel=5
pkgdesc='Pythonic argument parser, that will make you smile.'
url='https://pypi.org/project/PySocks/#files'
arch=('any')
license=('BSD')
depends=('python2')
makedepends=('python2-setuptools')
provides=('python2-socks')
replaces=('python2-socks')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('cef4a5ce8c67fb485644696a23bf68a721db47f3211212de2d4431eaf9ebd26077dd5a06f6dfa7fde2dcb9d7c1ed551facd014e999929cb4d7b504972c464016')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

